<template>
	<view class="content">
		<swiper class="banner-swiper" autoplay="true">
			<swiper-item>
				<image class="banner-image" src="../../static/images/common/yuyue.png" mode="aspectFit"></image>
			</swiper-item>
			<swiper-item>
				<image class="banner-image" src="../../static/images/common/banner1.png" mode="aspectFit"></image>
			</swiper-item>
			<swiper-item>
				<image class="banner-image" src="../../static/images/common/loupan2.png" mode="aspectFit"></image>
			</swiper-item>
		</swiper>
		<view class="group-menu">
			<view class="group-menu-item">
				<image class="group-menu-item-icon" src="../../static/images/icon/loupan_icon.png"></image>
				<view class="group-menu-item-text">热改楼盘</view>
			</view>
			<view class="group-menu-item">
				<image class="group-menu-item-icon" src="../../static/images/icon/linbao_icon.png"></image>
				<view class="group-menu-item-text">拎包入住</view>
			</view>
			<view class="group-menu-item">
				<image class="group-menu-item-icon" src="../../static/images/icon/gongdi_icon.png"></image>
				<view class="group-menu-item-text">工地实景</view>
			</view>
			<view class="group-menu-item">
				<image class="group-menu-item-icon" src="../../static/images/icon/baojie_icon.png"></image>
				<view class="group-menu-item-text">保洁阿姨</view>
			</view>
		</view>
		
			<view class="list-content">
			<view class="building-list">
				<view class="building-header">
					<view class="building-header-left">
						<view class="line"></view> 热改楼盘
					</view>
					<view class="building-header-right">
						更多
					</view>
				</view>
				<view class="building-list-content">
					<view class="building-item-content">
						<image class="building-item-image" mode="aspectFit" src="../../static/images/common/build1.png">
						</image>
						<view class="building-item-mark">
							<view class="building-item-title">天和尚上海</view>
							<view class="building-item-desc">150m²/北欧风</view>
						</view>
					</view>
					<view class="building-item-content">
						<image class="building-item-image" mode="aspectFit" src="../../static/images/common/build1.png">
						</image>
						<view class="building-item-mark">
							<view class="building-item-title">汤臣一品</view>
							<view class="building-item-desc">130m²/欧美风</view>
						</view>
					</view>
				</view>

			</view>
			<!-- 拎包入住 -->
			<view class="handbag-list">
				<view class="building-header">
					<view class="building-header-left">
						<view class="line"></view> 拎包入住
					</view>
					<view class="building-header-right">
						更多
					</view>
				</view>
				<view class="building-list-content">
					<view class="building-item-content">
						<image class="building-item-image" mode="aspectFit" src="../../static/images/common/build2.png">
						</image>
						<view class="building-item-markss">
							<view class="building-item-title">某某某某某某套餐</view>
							<view class="building-item-desc">150-180m²</view>
							<view class="building-item-desc">套餐具体套餐具体套餐具体套餐具体套 餐具体</view>
						</view>
					</view>
					<view class="building-item-content">
						<image class="building-item-image" mode="aspectFit" src="../../static/images/common/build2.png">
						</image>
						<view class="building-item-markss">
							<view class="building-item-title">某某某某某某套餐</view>
							<view class="building-item-desc">150-180m²</view>
							<view class="building-item-desc">套餐具体套餐具体套餐具体套餐具体套 餐具体</view>
						</view>
					</view>
				</view>
			</view>
			
			<!-- 工地实景 -->
			<view class="work-list">
				
				<view class="building-header">
					<view class="building-header-left">
						<view class="line"></view> 工地实景
					</view>
					<view class="building-header-right">
						更多
					</view>
				</view>
				<view class="building-list-content">
					<view class="building-item-contents">
						<image class="building-item-images" mode="aspectFit"
							src="../../static/images/common/loupan2.png"></image>
						<view class="building-item-marks">
							<view class="text">天和尚上海</view>
						</view>
					</view>
					<view class="building-item-contents">
						<image class="building-item-images" mode="aspectFit"
							src="../../static/images/common/loupan2.png"></image>
						<view class="building-item-marks">

						</view>
					</view>
				</view>
</view>
			</view>
		<view class="float-image">
			<image src="../../static/images/common/zixun.png" class="float-image-consult"></image>
		</view>
		</view>
</template>
<script>
	export default {
		data() {
			return {
				title: 'Hello 贺青云-202165110376'
			}
		},
		onLoad() {

		},
		methods: {

		}
	}
</script>
<style>
	.text {
		font-size: 24rpx;
		font-weight: 700;
		color: #ffffff;
		line-height: 60rpx;
		margin: 0 auto; 
		text-align: center;
	}
    .list-content{
		background: #F5F5F5;
	}
	.float-image{
		position: fixed;
		z-index: 333;
		bottom: 21rpx;
		right: 20rpx;
	}
	.float-image-consult{
		width: 182rpx;
		height: 222rpx;
	}
	.building-item-title {
		font-size: 24rpx;
		font-weight: 700;
		color: #ffffff;
		line-height: 24rpx;
	}

	.building-item-desc {
		font-size: 20rpx;
		font-weight: 700;
		color: rgba(255, 255, 255, .8);
		line-height: 20rpx;
		margin-top: 20rpx;
	}

	::-webkit-scrollbar {
		/* width: 0; */
		display: none;
	}

	.building-list-content {
		box-sizing: border-box;
		overflow-x: auto;
		margin-top: 20rpx;
		display: flex;
	}

	.building-item-content {
		width: 382rpx;
		height: 510rpx;
		margin-right: 40rpx;
		position: relative;
	}

	.building-item-contents {
		width: 520rpx;
		height: 312rpx;
		margin-right: 40rpx;
		position: relative;
	}

	/* 热改楼盘展示图片 */
	.building-item-image {
		width: 382rpx;
		height: 510rpx;
		border-radius: 0rpx 0rpx 16rpx 16rpx;
	}

	.building-item-images {
		width: 520rpx;
		height: 312rpx;
		border-radius: 0rpx 0rpx 16rpx 16rpx;
	}

	/* 笼罩阴影透明部分 */
	.building-item-mark {
		position: absolute; //子元素使用 absolute 父元素必须为相对定位 否则它"丢"了
		bottom: 0px;
		left: 0px;
		width: 382rpx;
		height: 94rpx;
		background: rgba(0, 0, 0, .3);
		border-radius: 0rpx 0rpx 16rpx 16rpx;
		box-sizing: border-box;
		/* 简写 */
		padding: 24rpx 12rpx;

		/* padding-left: 24rpx;
		padding-top: 12rpx;
		padding-bottom: 12rpx;
		padding-right: 24rpx; */
	}

	.building-item-markss {
		position: absolute; //子元素使用 absolute 父元素必须为相对定位 否则它"丢"了
		bottom: 0px;
		left: 0px;
		width: 382rpx;
		height: 164rpx;
		background: rgba(0, 0, 0, .3);
		border-radius: 0rpx 0rpx 16rpx 16rpx;
		box-sizing: border-box;
		/* 简写 */
		padding: 24rpx 12rpx;
	}

	.building-item-marks {
		position: absolute; //子元素使用 absolute 父元素必须为相对定位 否则它"丢"了
		bottom: 0px;
		left: 0px;
		width: 520rpx;
		height: 66rpx;
		background: rgba(0, 0, 0, .3);
		border-radius: 0rpx 0rpx 16rpx 16rpx;
	}

	* {
		margin: 0 auto;
		padding: 0 0;
	}

	.content {
		width: 100vw;
		height: 100vh;
		background-color: #F5F5F5;
		box-sizing: border-box; //盒子模型
	}

	.banner-swiper {
		width: 100%;
		height: 450rpx;
	}

	.banner-image {
		width: 100%;
		height: 100%;
	}

	.group-menu {
		box-sizing: border-box;
		padding: 40rpx 52rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;

	}

	.group-menu-item {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.group-menu-item-icon {
		width: 80rpx;
		height: 80rpx;
	}

	.group-menu-item-text {
		font-size: 24rpx;
		font-weight: 500;
		color: #333333;
		margin-top: 8rpx;
		line-height: 24rpx;
	}

	.building-list {
		background: #ffffff;
		box-sizing: border-box;
		padding-left: 30rpx;
		padding-top: 34rpx;
		padding-bottom: 28rpx;
		position: relative;
		margin-bottom: 40rpx;
	}

	.handbag-list {
		background: #ffffff;
		box-sizing: border-box;
		padding-left: 30rpx;
		padding-top: 34rpx;
		padding-bottom: 28rpx;
		margin-top: 40rpx;
		position: relative;
	}

	.work-list {
		background: #ffffff;
		box-sizing: border-box;
		padding-left: 30rpx;
		padding-top: 34rpx;
		padding-bottom: 28rpx;
		margin-top: 40rpx;
		position: relative;
	}

	.building-header {
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.building-header-left {
		font-size: 28rpx;
		font-weight: 700;
		color: #333333;
		line-height: 28rpx;

		display: flex;
		align-items: center;
	}

	.line {
		width: 6rpx;
		height: 28rpx;
		background: #3d9c36;
		margin-right: 20rpx;
	}

	.building-header-right {
		font-size: 24rpx;
		font-weight: 500;
		color: #333333;
		line-height: 24rpx;
	}

	.building-header-right::after {
		content: ">";
		margin-left: 10rpx;
		margin-right: 45rpx;
	}
</style>
